import request from '@/utils/request'
const baseUrl = '/cz-rentbox/api/v1/contractOrders/' // 车队服务-- 发布车源
// import { getContract} from '@/api/contract/eQuanBao'
 
/**
 * 根据id获取合同订单信息详情 http://localhost:9999/cz-rentbox/api/v1
 * GET {{baseUrl}}/contractOrders/{id}
 */
export const getContract = (id: any) => {
  return request({
    url: baseUrl+id,
    method: 'GET'
  })
}
/**
 * 合同订单信息列表
 * POST {{baseUrl}}/contractOrders/list
 */
export const getContractList = (data: any) => {
  return request({
    url: baseUrl+'list',
    method: 'POST',
    data: data,
    // data:{"orderId":33}
  })
}
// E签宝:获取合同签署链接
export const getEqbContractOrderInfo = (data: any) => {
  return request({
    url: baseUrl +'getEqbContractOrderInfoLongContractUrl',
    method: 'POST',
    data: data,
    // data:{"orderId":33}
  })
}

/**
 # E签宝:获取合同解约链接
 POST {{baseUrl}}/contractOrders/getEqbContractOrderInfoByOrderId
 {
       "orderId":1,
       "companyId":2,
       "businessType":5
}
 */
export const getEqbContractOrderInfoByOrderId = (data: any) => {
  return request({
    url: baseUrl+'getEqbContractOrderInfoByOrderId',
    method: 'POST',
    data: data,
    // data:{"orderId":33}
  })
}

/**
 # E签宝:获取合同解约链接
 POST {{baseUrl}}/contractOrders/getEqbContractOrderInfoByOrderId
 {
       "orderId":1,
       "companyId":2,
       "businessType":5
}
 */
export const getEqbContractOrderInfoLongContractUrl = (data: any) => {
  return request({
    url: baseUrl+'getEqbContractOrderInfoLongContractUrl',
    method: 'POST',
    data: data,
    // data:{"orderId":33}
  })
}
